
module.exports = function(req, res){
    if(!req.session.username)
        res.render('index',{ cartNum: 0});
    else res.render('index',{   username:req.session.username
                              , cartNum: 0
                            });
}

